<?php
/* @var $this BaivietController */
/* @var $model Baiviet */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'Tiêu đề'); ?>
		<?php echo $form->textArea($model,'tieudebaiviet',array('rows'=>6, 'cols'=>50)); ?>
	</div>

	

	<div class="row">
		<?php echo $form->label($model,'IDloaitin'); ?>
		<?php echo Qlhelper::selectidloatin(); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'Trạng thái'); ?>
		<?php echo $form->dropDownList($model,'trangthai',$model->getTrangthai()); ?>
	</div>
        <div class="row">
		<?php echo $form->label($model,'baivietdacbiet'); ?>
		<?php echo $form->checkBox($model, 'baivietdacbiet'); ?>
	</div>

        <script>
        $(function () {
            $("#anim").change(function () {
                $("#datepicker").datepicker("option", "showAnim", $(this).val());
            });
        });
        </script>
	<div class="row">
		<?php echo $form->label($model,'Ngày đăng'); ?>
		<?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                    'attribute'=>'ngaydang',
                    'model'=>$model,
                    'value'=>date('m-d-Y'),    
                    'options'=>array(
                        'showAnim'=>'slideDown',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
                        'showButtonPanel'=>true,
                    ),
                    'htmlOptions'=>array(
                        'style'=>''
                    ),
                    ));
                ?>
	</div>
    
        <div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->